package com.itjiange;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * 领导员工
 *
 * @author ItJianGe
 * @data 2024/8/13 11:12
 */
public class LeadingStaff extends Staff {

    private ArrayList<Staff> staffArrayList = new ArrayList<>();

    public LeadingStaff(String name, String position) {
        super(name, position);
    }

    /**
     * 新增员工
     * @param staff
     */
    public void addAllStaff(Staff... staff) {
        staffArrayList.addAll(Arrays.asList(staff));
    }

    /**
     * 获取员工信息
     */
    public ArrayList<Staff> getAllStaffInfo() {
        return staffArrayList;
    }
}
